﻿<%@ Control Language="C#" Inherits="Web.Control.WWW.Group.Forum" %>
<asp:Literal ID="lLCount" Text="15" runat="server" Visible="false"/>
<input type="hidden" name="Rety" value="0" id="Rety" />
<input type="hidden" name="LeaveGID" value="0" id="LeaveGID" />
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%=(gm.ImgUrlPath == "" ? "<img src='/images/no_pic.gif' border='0' height='35px' width='35px' align='absmiddle' alt=\"" + HttpUtility.HtmlAttributeEncode(gm.Title) + "\" />" : ("<img src='/UploadImages/Groups/" + gm.GroupID + "_2.jpg' border='0' height='35px' width='35px' align='absmiddle' alt=\"" + HttpUtility.HtmlAttributeEncode(gm.Title) + "\" />"))%> <%=gm.Title %></h1>
							</div>
							<div class="group_summary">
									<p><%=GetText("GP012")%>:&nbsp;<%=(gm.GroupType == "1" ? "<A href='/groups/learn-all-1-1-1.htm'>" + GetText("GP013") + "</a>" : (gm.GroupType == "2" ? "<A href='/groups/learn-all-2-1-1.htm'>" + GetText("GP014") + "</a>" : (gm.GroupType == "3" ? "<A href='/groups/all-3-1-1.htm'>" + GetText("C0087") + "</a>" : GetText("classroom"))))%>&nbsp;&nbsp;<%=gm.GroupType != "3" ? ((BLF.StaticData.HaveLanguageImage(gm.Language1) ? "<a href='" + WWWHost + "/groups/learn-" + gm.Language1 + "-0-1-1.htm' title='" + GetText("C0105", new string[] { BLF.StaticData.GetLanguageText(gm.Language1) }) + "'><img src=\"/images/language_" + gm.Language1 + ".gif\" border='0'  align='absmiddle' /></a> " : "") + "<a href='" + WWWHost + "/groups/learn-" + gm.Language1 + "-0-1-1.htm'>" + GetText("C0105", new string[] { BLF.StaticData.GetLanguageText(gm.Language1) }) + "</a>&nbsp;&nbsp;") : ""%><%= BLF.StaticData.HaveLanguageImage(gm.Language2) ? "<a href='" + WWWHost + "/groups/" + gm.Language2 + "-3-1-1.htm' title='" + GetText("C2018", new string[] { BLF.StaticData.GetLanguageText(gm.Language2) }) + "'><img src=\"/images/language_" + gm.Language2 + ".gif\" border='0'  align='absmiddle' /></a> " : ""%><a href='<%=WWWHost %>/groups/<%=gm.Language2 %>-3-1-1.htm'><%=GetText("C2018", new string[] { BLF.StaticData.GetLanguageText(gm.Language2) })%></a>
									</p>
									<%if(tagList.Count>0){ %>
									<p><%=GetText("C0107") %>:&nbsp;
										<%foreach (string tag in tagList)
										{%>
										<a href="<%=WWWHost%>/groups/tag/<%=tag%>.htm"><%=tag %></a>&nbsp;&nbsp;
										<%} %>
									</p>
									<%} %>
							</div>
							<div class="submenuN_button">
								<div class="layer_contentA5"><%if (((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm){%><a class="naddbtn btnspec" href="/groups/create-group.htm" style="text-decoration:none"><%}else{ %><a class="naddbtn btnspec" href="#" onclick="NotAffirm()" style="text-decoration:none"><%} %><span>&nbsp;&nbsp;&nbsp;<%=GetText("GP200")%>&nbsp;&nbsp;&nbsp;</span></a>
										<%if (!gm.MyInGroup && gm.Memberno != Memberno)
										{ %>
										<div class="group_op">
											<div class="group_op_txt Black12UU"><a href="javascript:void(0);" <%=(((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm)?"onclick=\"Join('"+gm.JoinOptions +"')\"":"onclick=\"NotAffirm()\""%>><strong><%=GetText("GP205")%></strong></a></div>
										</div>
										<%}
										else if (gm.MyInGroup && gm.Memberno != Memberno)
										{ %>
										<div class="group_op">
											<div class="group_op_txt Black12UU"><a href="javascript:void(0);" onclick='Leave()'><strong><%=GetText("GP207")%></strong></a></div>
										</div>
										<%} 
										else if ( gm.Memberno == Memberno)
										{ %>
										<div class="group_op">
											<div class="group_op_txt Black12UU"><a href="/groups/editgroup/<%=gm.GID %>.htm" ><strong><%=GetText("GP206")%></strong></a></div>
										</div>
										<div class="group_op">
											<div class="group_op_txt Black12UU"><a href="<%=WWWHost %>/groups/<%=gm.GID %>/members-1.htm" ><strong><%=GetText("GP212")%></strong></a>
											<%if(gm.Requests>0){ %><br /><span dir="ltr">(<%=GetText("GP032",new string[]{gm.Requests.ToString()}) %>)</span><%} %>
											</div>
										</div>
										<%} %>
										<div class="group_op">
											<div class="group_op_txt Black12UU"><a href="javascript:void(0);" <%=(((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm)?"onclick=\"Invite('"+Escape(gm.Title)+"')\"":"onclick=\"NotAffirm()\""%>><strong><%=GetText("GP213") %></strong></a></div>
										</div>
										<%if(Memberno!=gm.Memberno&&!gm.MyInGroup){ %>
										<div class="group_op">
											<div class="group_op_txt Black12UU"><a href="javascript:void(0);" onclick="$Feedback$()"><strong><%=GetText("C0110")%></strong></a></div>
										</div>
										<%} %>
										<%if(gm.MyInGroup&&!gm.MyIsAdmin){ %>
										<div class="group_op" >
											<div class="group_op_txt Black12UU"><a href="javascript:void(0);" onclick="AppAdmin()"><strong><%=GetText("GP224")%></strong></a></div>
										</div>
										<%} %>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div>
					<ul class="sort_sel">
						<li class="unselATags first" style="float:left"><span><a href="/groups/<%=gm.GID%>"><%=GetText("GP002")%></a></span></li>									
						<li class="selATags" style="float:left"><span><a href="<%=WWWHost %>/groups/<%=gm.GID%>/forum-1.htm"><%=GetText("GP004")%></a></span></li>
						<li class="unselATags" style="float:left"><span><a href="<%=WWWHost %>/groups/<%=gm.GID %>/members-1.htm"><%=GetText("C0088")%></a></span></li>
					</ul>	
					<div class="clear"></div>
				</div>
				<div class="Center9001n">
					<div class="Center9001common">
						<div class="center9001content">
						<div class="group_area">
							<div class="spectitleTline">
								<div class="subtitle_left"><%=GetText("GP009",new string[]{recordCount.ToString()})%></div>
								<div class="subtitle_op"><img src="/Images/icon_add.gif" align="absmiddle" /> <a href="#" <%=(((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm)?"onclick=\"AddTopic()\"":"onclick=\"NotAffirm()\""%> ><span><%=GetText("GP211")%></span></a></div>
								<div class="clear"></div>
							</div>
							<div class="contentN">
								<div id="wallList">
									<table width="100%" border="0" cellspacing="1" cellpadding="2">
										<tr>
											<td width="730" bgcolor="#efefef" class="grey11"><%=GetText("GP045")%></td>
											<td width="70" bgcolor="#efefef" class="grey11"><%=GetText("GP028")%></td>
											<td width="70" bgcolor="#efefef" class="grey11"><%=GetText("WK019")%></td>
										</tr>
								  </table>
									<div style="margin-top:15px">
									<asp:Repeater ID="repTopic" runat="server">
									<ItemTemplate>
									<div class="commonL">
										<div class="common_list870">
											<div class="group_forum_Bacontent">
											    <div class="group_forum_avatar Pic50"><a class="Photo_50"  href="<%#WWWHost %>/<%#Eval("Memberno") %>.htm" title="<%#Eval("NickName") %>"><%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" />" : "<img src=\"" + Eval("Avatar").ToString()+ "\" />"%></a></div>
												<div class="common_list_title word_break"><a href="<%#WWWHost %>/groups/<%#Eval("GID") %>/topic/<%#Eval("FID") %>.htm" title="<%#Eval("Title")%>"><%#Eval("Title")%></a></div>
												<div class="common_list_info"><%#(Eval("NewMemberno") != null && Eval("NewMemberno").ToString() != "") ? GetText("C0090", new string[] { "<a href='" + WWWHost + "/" + Eval("Memberno") + ".htm'>" + Eval("NickName") + "</a>" })+" - " + GetText("GP011", new string[] { "<a href='" + WWWHost + "/" + Eval("NewMemberno") + ".htm'>" + Eval("NewNickName") + "</a>", (FormatDiffDate(GetText("C0035"), Eval("DiffDate").ToString())) }) : GetText("GP010", new string[] { "<a href='" + WWWHost + "/" + Eval("Memberno") + ".htm'>" + Eval("NickName") + "</a>", (FormatDiffDate(GetText("C0035"), Eval("DiffDate").ToString())) })%></div>
											</div>
											<div class="group_forum_reply"><%#Eval("Topics") %></div>
											<div class="group_forum_view"><%#Eval("Views")%></div>
											<div class="Clear"></div>
										</div>
										<div class="Clear"></div>
									</div>
									</ItemTemplate>
									</asp:Repeater>
									</div>
									<div class="page_num">
							<%=CreatePageNav(recordCount, int.Parse(lLCount.Text), pageIndex,
									 "", string.Format("<span class='page_none grey10'><a href='{2}/groups/{0}/forum-$I$.htm'>{1}</a></span>&nbsp;", gm.GID.ToString(), HttpUtility.UrlEncode(GetText("Prev")), WWWHost),
									 "", string.Format("<span class='page_none grey10'><a href='{2}/groups/{0}/forum-$I$.htm'>{1}</a></span>&nbsp;", gm.GID.ToString(), HttpUtility.UrlEncode(GetText("Next")), WWWHost),
									string.Format("<span class='page_select'>{0}</span>&nbsp;", pageIndex),
									string.Format("<span class='page_none grey10'><a href='{1}/groups/{0}/forum-$I$.htm'>$I$</a></span>&nbsp;", gm.GID.ToString(), WWWHost))%> </div>
								</div>
							</div>
						</div>
						</div>
					</div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
<script>
var lhost="<%=WWWHost %>";
var joinTitle = "<%=GetText("GP052") %>";
var joinDesc ='<%=GetText("GP229") %>';
var GP231="<%=GetText("GP231") %>";
var C0056="<%=GetText("C0056") %>";
var GP232="<%=GetText("GP232") %>";
var GP230="<%=GetText("GP230") %>";
var GP224="<%=GetText("GP224") %>";
var GP116 = "<%=GetText("GP116") %>";
var GP115 = '<%=GetText("GP115") %>';
var ST155='<%=GetText("ST155") %>'.replace(/\{0\}/gi,"3").replace(/\{1\}/gi,"1000");
var joinDesc1 ='<%=GetText("GP117") %>';
var leaveTitle="<%=GetText("GP053") %>";
var NickName="<%=NickName %>";
var appAdminTitle="<%=GetText("GP224") %>";
var groupID='<%=gm.GID %>';
var groupTitle="<%=Escape(gm.Title) %>";
</script>